package com.janyee.buddha.view;

import android.content.Context;
import android.graphics.Canvas;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.util.Log;
import android.widget.TextView;

/**
 * Created by kmlixh on 18/1/2.
 */

public class TestText extends android.support.v7.widget.AppCompatTextView {
    public TestText(Context context) {
        super(context);
    }

    public TestText(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public TestText(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    protected void onDraw(Canvas canvas) {
        long t1 = System.currentTimeMillis();
        super.onDraw(canvas);
        long t2 = System.currentTimeMillis();
        Log.e("====", "onDraw time:" + (t2 - t1));
    }
}
